﻿using System.Collections.Generic;
using DomainModel;

namespace Repository.Abstract
{
    public interface IRepository<T> where T : EntityBase
    {
        void SaveOrUpdate(T entity);
        T GetById(long id);
        IEnumerable<T> GetAll();
        void Delete(T entity);
    }
}